import {getshopCartList} from '@/api'

const state = {
shopCarList:[]
}
const mutations = {
    SHOP_LIST(state,shopCarList){
     state.shopCarList=shopCarList
}
}
const actions = {
    async getShopCarList({commit}){
        const result = await getshopCartList()
        if(result.code===200){
            console.log(result.data)
            commit('SHOP_LIST',result.data)
        }
    }
}
const getters = {}




export default{
    state,
    mutations,
    actions,
    getters
}